From: Phil Stopford Date: Thu, 30 Mar 2023 22:34:55 +0000 (+0000) Subject: Address issue 5711 by checking that the context is not NULL. X-Git-Tag: archive/raspbian/3.24.39-1+rpi1~1^2~65^2^2~19^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=60d197fca8f59a78e7d8cffc505af34680bcf697;p=gtk%2B3.0.git Address issue 5711 by checking that the context is not NULL. --- diff --git a/gdk/gdkgl.c b/gdk/gdkgl.c index 61cf16417b..666b5e8133 100644 --- a/gdk/gdkgl.c +++ b/gdk/gdkgl.c @@ -367,7 +367,7 @@ gdk_cairo_draw_from_gl (cairo_t *cr, clip_region = gdk_cairo_region_from_clip (cr); - if (gdk_gl_context_get_current () != paint_context) + if ((gdk_gl_context_get_current () != NULL) && (gdk_gl_context_get_current () != paint_context)) sync = glFenceSync (GL_SYNC_GPU_COMMANDS_COMPLETE, 0); gdk_gl_context_make_current (paint_context);